package net.demo.dal.user;

import java.io.Serializable;

/**
 * 用户
 */
public class User  implements Serializable {
	private static final long serialVersionUID = -1556212368482877911L;
		
		//用户ID
		private Long userId;
		//用户名
		private String userName;
		//用户密码
		private String password;
	    //用户昵称
		private String nickname;
		//用户头像
		private String headImg;
		//用户积分
		private Integer point;
		//用户邮箱
		private String email;
		//移动电话
		private String mobile;
		//用户座机
		private String phone;
		//性别
		private String sex;
		//用户QQ
		private String qq;
		//找回密码问题
		private String question;
		//找回密码答案
		private String answer;
		
		
		//账户余额
		private Double accountMoney;
		//用户消费额
		private Double consumeMoney;
		//用户等级
		private Integer  intLevel;

		
		public Long getUserId() {
			return userId;
		}

		public void setUserId(Long userId) {
			this.userId = userId;
		}

		public String getUserName() {
			return userName;
		}

		public void setUserName(String userName) {
			this.userName = userName;
		}

		public String getPassword() {
			return password;
		}

		public void setPassword(String password) {
			this.password = password;
		}

		public String getNickname() {
			return nickname;
		}

		public void setNickname(String nickname) {
			this.nickname = nickname;
		}

		public String getHeadImg() {
			return headImg;
		}

		public void setHeadImg(String headImg) {
			this.headImg = headImg;
		}

		public Integer getPoint() {
			return point;
		}

		public void setPoint(Integer point) {
			this.point = point;
		}

		public String getEmail() {
			return email;
		}

		public void setEmail(String email) {
			this.email = email;
		}

		public String getMobile() {
			return mobile;
		}

		public void setMobile(String mobile) {
			this.mobile = mobile;
		}

		public String getPhone() {
			return phone;
		}

		public void setPhone(String phone) {
			this.phone = phone;
		}

		public String getSex() {
			return sex;
		}

		public void setSex(String sex) {
			this.sex = sex;
		}

		public String getQq() {
			return qq;
		}

		public void setQq(String qq) {
			this.qq = qq;
		}

		public String getQuestion() {
			return question;
		}

		public void setQuestion(String question) {
			this.question = question;
		}

		public String getAnswer() {
			return answer;
		}

		public void setAnswer(String answer) {
			this.answer = answer;
		}

		public Double getAccountMoney() {
			return accountMoney;
		}

		public void setAccountMoney(Double accountMoney) {
			this.accountMoney = accountMoney;
		}

		public Double getConsumeMoney() {
			return consumeMoney;
		}

		public void setConsumeMoney(Double consumeMoney) {
			this.consumeMoney = consumeMoney;
		}

		public Integer getIntLevel() {
			return intLevel;
		}

		public void setIntLevel(Integer intLevel) {
			this.intLevel = intLevel;
		}
		
		
		public UserLevel getLevel(){
			return UserLevel.convertIntToLevel(this.intLevel);
		}
		
}
